
<script id="view-codec-template" type="text/x-handlebars-template">
	<form class="form-horizontal form-editor form-editor-codec">
		<input type="hidden" name="id" value="{{id}}"/>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="name">字典名称</label>
					<div class="col-sm-8">
						<input name="name" id="name" type="text" class="form-control" required="required" value="{{name}}">
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="code">字典编码</label>
					<div class="col-sm-8">
						<input name="code" id="code" type="text" class="form-control" required="required" value="{{code}}">
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="sort">排序号</label>
					<div class="col-sm-8">
						<input name="sort" id="sort" type="number" class="form-control" value="{{sort}}">
					</div>
				</div>
			</div>
		</div>

		<div class="widget-footer editor-footer-sm">
			<button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top" title="取消" onclick="handlerCancel(this);" data-refresh-table="#table-codec">
				<i class="glyphicon glyphicon-remove"></i>
			</button>
			<button type="button" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="保存" onclick="handlerSubmit(this, '#editor-form-codec', '.form-editor-codec', 'setFormData');">
				<i class="glyphicon glyphicon-ok"></i>
			</button>
		</div>
	</form>
</script>
		
